<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    </head> <body>
        <p>Chinese Text : &#24744;&#22909;&#19990;&#30028; </p>
        <p>Indian text : &#2361;&#2375;&#2354;&#2379; &#2357;&#2367;&#2358;&#2381;&#2357; </p>

        <?php
        require("foo.php");
        require("TestControlStructures.php");
        require("PHP_P1.php");
        print_r("<br/> "); //xuong dong ///
        print_r("***** START demo.php");
        print_r("<br/>"); //xuong dong
        //cai demo nay moi dung: dat trong day moi dc
        // D:\Data_IT\Servers-WEB_DBMS\xampp-win32-1.8.2-1-VC9\htdocs
        //trong folder Vinh co cai shortcut: "htdocs - Shortcut" => double-click vao day  cung den dc do!
        //http://localhost:81/demo_vinh/demo.php
        //http://192.168.0.17:81/demo_vinh/demo.php
        //http://phongnd.dlinkddns.com:81/demo_vinh/demo.php
        //nếu chạy không được thì ....services.msc ,start dv Apache2.4
        //////
        //services.msc -  start/stop Apache2.4


        $a = 2; // bien $a
        if ($a === 1) {
            print_r("Day la so 1");
        } else {
            print_r("Day la so KHAC 1");
        }

        //for php
        //foreach php
        //while php



        $str = <<<EOD
Example of string
spanning multiple lines
using heredoc syntax.
EOD;

        $test = new TestControlStructures(); //tạo đối tượng
        $test->checkLogical(); // kích hoạt chức năng
        $test->checkwhile();

        $foo = new foo();
        $name = 'MyName';

        echo <<<EOT
My name is "$name". I am printing some $foo->foo.
Now, I am printing some {$foo->bar[1]}.
This should print a capital 'A': ỗ
EOT;
        echo 'Arnold once said: "I\'ll be back"';
        echo "Arnold once said: 'I'll be back'";
        print_r("<br/>" . "kết quả so sánh biến bar2 o64");
        print_r("<br>" . floor(60 / 10) . "---" . (6 % 10));
        print_r("<br>" . "strcasecmp..." . strcasecmp("aaaaaaathevinh", "aaaaaaaavinh"));
        print_r("<br>");
        $pizza = "piece1 piece2 piece3 piece4 piece5 piece6";
        $pieces = explode(" ", $pizza);
        echo $pieces[0]; // piece1
        echo $pieces[1]; // piece2
        //$foo->foo();


        print_r("<br/>"); //xuong dongz


        $php1 = new PHP_P1();
	
        print_r("<br/>"); //xuong dong
        print_r("***** END demo.php");
        exit;
        ?>
        Something is wrong with the XAMPP installation :-(

    </body>
</html>